package org.bdware.doip.core.codec;

import org.bdware.doip.core.doipMessage.DoipMessage;
import org.bdware.doip.core.exception.DoDecodeException;

import java.io.IOException;

public interface DelimiterMessageCodec {
    byte[] ResponseToBytes(DoipMessage response);
    DoipMessage BytesToResponse(byte[] responseBytes) throws DoDecodeException;

    byte[] RequestToBytes(DoipMessage request) throws DoDecodeException, IOException;
    DoipMessage BytesToRequest(byte[] requestBytes);
}
